package com.pig4cloud.pig.customer.vo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;


import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

@Data
public class TrCustomer {
	@TableId(value = "cus_id", type = IdType.ASSIGN_ID)
	@Schema(description = "客户id")
	private Long cusId;
	/**
	 *用户姓名
	 */
	@NotBlank(message = "用户姓名不能为空")
	@Schema(description = "用户姓名")
	private String cusName;
	/**
	 * 用户电话
	 */
	@Schema(description = "手机号")
	private String cusTel;
	/**
	 * 客户来源
	 */
	@Schema(description = "客户来源")
	private String cusSource;

	@Schema(description = "备注")
	private String remark;
	/**
	 * 创建人
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "创建人")
	private String createBy;

	/**
	 * 修改人
	 */
	@TableField(fill = FieldFill.UPDATE)
	@Schema(description = "修改人")
	private String updateBy;

	/**
	 * 创建时间
	 */
	@Schema(description = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	/**
	 * 修改时间
	 */
	@Schema(description = "修改时间")
	@TableField(fill = FieldFill.UPDATE)
	private LocalDateTime updateTime;
	/**
	 * 订单数
	 */
	@Schema(description = "订单数")
	@TableField(exist = false)
	private Integer orderCount;
	/**
	 * 行程数
	 */
	@Schema(description = "行程数")
	@TableField(exist = false)
	private Integer tripCount;


}
